'; //echo ""; echo ""; ?> "; echo "dating"; echo ""; echo ""; echo ""; if (!$bcon) { echo ""; echo "

"; echo "\"*\"/
"; echo "ERROR! cannot connect to database

"; echo "This error happens usually when backing up the database, please be patient, The site will be up any minute

"; echo "THANK YOU VERY MUCH"; echo "

"; echo ""; exit(); } $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; //include("varsncss.inc.php"); cleardata(); if(isipbanned($uip,$brw)) { if(!isshield(getuid_sid($sid))) { ("Ip Blocked"); echo "

"; echo "\"x\"/
"; echo "This IP address is blocked
"; echo "
"; echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo " IP: $rmsg

"; echo "

"; echo "

"; echo "\"Welcome\"/
"; echo "Welcome to $sitename Community, please Feel Free To Browse

"; echo "Enjoy Loads of outstanding features, and much more to come"; echo "

"; echo "

"; echo "

"; echo "UserID:
"; echo "Password:
"; echo "
"; //echo "

Not registered yet?
Sign Up
"; echo "Site Rules
"; echo "

"; echo "

"; $onu = getnumonline(); echo "Members Inside: $onu

"; $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users")); echo "We Currently Have $norm[0] Registered Members

"; echo "
"; echo "

"; echo ""; exit(); } } if(($action != "") && ($action!="terms") && ($action!="viewcat") && ($action!="viewtpc") && ($action!="viewfrm") && ($action!="tolog")) { $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) { ("Not Logged in"); echo "

"; echo "You are not logged in
"; echo "Or Your session has been expired

"; echo "Login"; echo "

"; echo ""; exit(); } } //echo isbanned($uid); if(isbanned($uid)) { ("You Are Banned"); echo "

"; echo "\"x\"/
"; echo "You are Banned
"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg

"; echo "Ban Reason: $banres[0]"; //echo "Login"; echo "

"; echo ""; exit(); } $res = mysql_query("UPDATE ibwf_users SET browserm='".$brw."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); addonline(getuid_sid($sid),"XHTML - Viewing Dating System","dating.php?action=main"); ////////////////////////////////////////MAIN PAGE if($action=="main") { $result=mysql_query("select * from ibwf_dating where cat='m4f'"); $mf = mysql_num_rows($result); $result=mysql_query("select * from ibwf_dating where cat='f4m'"); $fm = mysql_num_rows($result); $result=mysql_query("select * from ibwf_dating where cat='m4m'"); $mm = mysql_num_rows($result); $result=mysql_query("select * from ibwf_dating where cat='f4f'"); $ff = mysql_num_rows($result); echo ""; if(stristr($HTTP_USER_AGENT,"Windows NT")) { ("Viewing Dating Cards"); }else{ } echo "

"; echo "

\"\"/$sitename-Dating\"\"/

"; echo "

\"\"/Guys for Girls($mf)
"; echo "\"\"/Girls for Guys($fm)
"; echo "\"\"/Guys for Guys($mm)
"; echo "\"\"/Girls for Girls($ff)
"; echo "
Add My Card"; echo "
Home"; echo "

"; if(stristr($HTTP_USER_AGENT,"Windows NT")) { }else{ } echo ""; } else if($action=="datingview") { echo ""; if(stristr($HTTP_USER_AGENT,"Windows NT")) { ("Viewing Dating Cards"); }else{ } $cat=$_GET["cat"]; $page=$_GET["page"]; if($page=="") { $page=1; } $max_results = 7; $from = (($page * $max_results) - $max_results); echo "

"; $total_results = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_dating WHERE cat='$cat'")); if($total_results[0]<1) { echo "No Profiles To Show Yet
"; }else{ $total_pages = ceil($total_results[0] / $max_results); echo "$page Of $total_pages

"; $sql = mysql_query("SELECT * FROM ibwf_dating WHERE cat='$cat' ORDER BY id desc LIMIT $from, $max_results"); while($row = mysql_fetch_array($sql)){ $name = $row['uid']; $key = $row['id']; $sqlthing = mysql_fetch_array(mysql_query("SELECT * FROM ibwf_users WHERE id='$name'")); $age=getage($sqlthing["birthday"]); $uname=$sqlthing["name"]; echo "~$uname(Age: $age)~
" ; } if($page < $total_pages){ $next = ($page + 1); echo "Next
"; } if($page > 1){ $prev = ($page - 1); echo "Prev
"; } $i = 1; $i <= $total_pages; $i++ ; } echo "
Dating Index"; echo "

"; if(stristr($HTTP_USER_AGENT,"Windows NT")) { }else{ } echo ""; } else if($action=="card") { $key=$_GET["key"]; $cat=$_GET["cat"]; $sql = mysql_fetch_array(mysql_query("SELECT * FROM ibwf_dating WHERE id='$key'")); $usid=$sql["uid"]; $who=$usid; $name=getnick_uid($usid); $about=$sql["aboutme"]; $looking=$sql["lookingfor"]; echo ""; if(stristr($HTTP_USER_AGENT,"Windows NT")) { ("Viewing Dating Cards"); }else{ } echo "

"; echo "*Username*
$name

"; echo "*About*
$about

"; echo "*Looking For*
$looking
"; echo "
"; echo "[Send $name A PM]

"; $uid = getuid_sid($sid); if(budres($uid, $who)==0) { echo "Add to buddy list
"; }else if(budres($uid, $who)==1) { echo "Queued Buddy Requests
"; }else if(budres($uid, $who)==2) { echo "Remove From buddy list
"; } $ires = ignoreres($uid, $who); if(es==2) { echo "Remove From Ignore list
"; }else if($ires==1) { echo "Add to Ignore list
"; } echo "Back"; echo "
Dating Index"; echo "

"; if(stristr($HTTP_USER_AGENT,"Windows NT")) { }else{ } echo ""; } else if($action=="add") { echo ""; if(stristr($HTTP_USER_AGENT,"Windows NT")) { ("Viewing Dating Cards"); }else{ } echo "

"; echo "Here you can Place your own add in our dating system, simply enter the details below to add you card

"; echo "
"; echo "

"; echo "About Me:
"; echo "hobbies intrests etc
"; echo "
"; echo "Looking For:
"; echo "
"; echo "Your Gender:"; echo "
"; echo "
Gender wanted:"; echo "
"; $ui=getuid_sid($sid); echo "
"; echo "

"; echo "Home

"; if(stristr($HTTP_USER_AGENT,"Windows NT")) { }else{ } echo ""; } else if($action=="add2") { echo ""; if(stristr($HTTP_USER_AGENT,"Windows NT")) { ("Viewing Dating Cards"); }else{ } echo "

"; $about=$_POST["aboutme"]; $looking=$_POST["lookingfor"]; $cat1=$_POST["first"]; $cat2=$_POST["second"]; $cat=$cat1."4".$cat2; $ui=$_POST["ui"]; $result=mysql_query("select * from ibwf_dating where uid='$ui' and cat='$cat'"); $number_of_rows = mysql_num_rows($result); if ($number_of_rows>0){ $problems="1"; echo "You already have a card in this category! =p
"; echo "
Dating Index
";} if ($problems==""){ echo "\"\"/$sitename-Dating\"\"/
"; $sql = "INSERT INTO ibwf_dating (uid, cat, aboutme, lookingfor) VALUES ('$ui','$cat','$about','$looking')"; $result = mysql_query($sql); echo "Cupids arrow has been fired, but were will it land?"; echo "
Dating Index
"; } echo "Home

"; if(stristr($HTTP_USER_AGENT,"Windows NT")) { }else{ } echo ""; } echo ""; ?>